package org.jeecg.modules.carInformationUpload.entity;

import lombok.Getter;

@Getter
public enum EntryExitStatus {
    ENTRY("1"),
    EXIT("2");

    private final String value;

    EntryExitStatus(String value) {
        this.value = value;
    }

    public static EntryExitStatus fromValue(String value) {
        for (EntryExitStatus status : values()) {
            if (status.getValue().equals(value)) {
                return status;
            }
        }
        throw new IllegalArgumentException("Invalid EntryExitStatus value: " + value);
    }

}
